<include file="Public:_head" />
<link type="text/css" rel="stylesheet" href="com_statics/style/manhuaDate.1.0.css">
<script type="text/javascript" src="com_statics/js/date.js"></script>
<script type="text/javascript" src="weixin_statics/js/soundmanager2-jsmin.js"></script>
<style>.red{border-color:red;}</style>

<script type="text/javascript">
$(document).ready(function() {
  $(function (){
  $("input[name='mh_date']").manhuaDate({                
    Event : "click",//可选               
    Left : 0,//弹出时间停靠的左边位置
    Top : -16,//弹出时间停靠的顶部边位置
    fuhao : "-",//日期连接符默认为-
    isTime : false,//是否开启时间值默认为false
    beginY : 2013,//年份的开始默认为1949
    endY :2033//年份的结束默认为2049
  });
  
});
});
</script>
<include file="Public:left" />
<div id="neirong">
    
	 <!-- <h2 class="lm_title">应聘者管理 </h2>-->
	<div id="resume">
		 <h3 class="subTitle"><img src="com_statics/images/icon_8.gif" alt="图片描述" />简历管理<span>简历管理，快速及时处理简历！</span></h3>
    
			<h3 class="NavTitle">最新简历<span>（今天共新增&nbsp;<font color="
				red">{$cou|default="0"}</font>&nbsp;份）</span></h3>
            

            <div class="resumeNr">
            		<volist name="list" id="vo">
                     <div class="resumeList">
                        <a href="" class="photo">
                                <switch name="vo.is_check" >
                                 <case value="0"><i class="tips t2">未查看</case>
                                 <case value="1"><i class="tips t3">已查看</case>
                                 <default /><i class="tips t1">已预约
                                 </switch></i><img src="{$vo.info.face.url}" alt="图片描述" /></a>
                        <strong class="name">{$vo.info.truename}（{$vo.info.xingbie|format_xingbie}，{$vo.info.shengri|format_age}岁）</strong>
                        <address>{$vo.info.tizhong}KG/{$vo.info.shengao}CM &nbsp;&nbsp;{$vo.info.xueli|getxueli} &nbsp;&nbsp;<eq name="vo.resume.jingyan" value="0">无经验<else/>{$vo.resume.jingyan}年经验</eq></address>
                        <address>{$vo.info.pro|getareaname}-{$vo.info.city|getareaname}-{$vo.info.area|getareaname}</address>
                        <a href="#" class="from">{$vo.jobname}</a>
                        <span class="tel">电话：{$vo.info.phone}</span>
                        <a href="#" class="btn_grzl" value="{$vo.id}" title="点击查看简历详情">个人资料</a>
						<if condition="$vo['resume']['voice'] neq 0">
                        <a href="" class="btn_lianxi" value="{$vo.id}" data-index="{$vo.resume.voice}" title="点击播放语音简历">联系</a>
						</if>
                        <a href="#" class="btn_yuyue" value="{$vo.id}" title="点击预约面试">预约</a>
                        <a href="#" class="btn_del" value="{$vo.id}" title="点击删除">删除</a>
                    </div>
                    
					
                    <div class="JingLi jingli{$vo.id}">
				<strong>工作经历</strong>
				<ul>
					<volist name="vo.exper" id="eo">
					<li><span>时间：</span><p>{$eo.jobbegin}&nbsp;到&nbsp;{$eo.jobend}</p></li>
					<li><span>企业：</span>{$eo.jobname}</li>
					<li><span>职务：</span>{$eo.jobzhiwei}</li>
					</volist>
				</ul>
				<p><span>自我介绍：</span>{$vo.resume.myinfo}</p>
                
                <span class="close">&times;</span>
			</div>
            <!-- .JingLi结束 --> 
            
            
			<div class="del_RC del_rc{$vo.id}">
            	<img src="com_statics/images/icon5.png" class="pic" />
				<strong>确定这个人才不合适吗？</strong>
				<p>点击<em>【确定】</em>虽然残酷，<br/>但可以节省他等待的心情！</p>
				<a href="" class="btn_sure" onclick="del({$vo.id})">确 定</a><a href="" class="btn_esc">取 消</a>
			</div>
            <!-- .del_RC结束 --> 
            
            
			<div class="yuyue_RC yuyue_rc{$vo.id}">
                <neq name="interview" value="1">
                    <p>您尚未开通预约面试功能，</p><p>请联系我们！</p>
                <else/>
				<notempty name="vo.mtime">
				<p>&nbsp;</p>
				<p>
				已预约：{$vo.mtime}{$vo.time}{$vo.address}
				</p>
				</notempty>
				<form action="__URL__/yuyue" method="post" onSubmit="return checkyuyue();">
				<span>面试时间</span>
                <input name="mh_date" type="text"  class="text"/>
                <span>时间补充</span>
                <input name="time" type="text"  class="text" placeholder="下午两点到六点"/>
                <span>面试地址</span>
                <input name="address" type="text"  class="text" value="{$address}"/>
                <span>联系人</span>
                <input name="manage" type="text"  class="text" value="{$manage}"/>
                <span>联系电话</span>
                <input name="phone" type="text"  class="text" value="{$phone}"/> 
                <input type="hidden" name="id" value="{$vo.id}" />
                <empty name="vo.mtime">
                <input class="btn_Yuyue" type="submit" value="预约">
                <else/>
                <input class="btn_Yuyue" type="submit" value="重新预约">
            	</empty>
                <!-- <a href="" class="btn_Yuyue" type="submit">预约</a>  -->
                </form>
                </neq>
                <span class="close">&times;</span>
			</div>
            <!-- .yuyue_RC结束 --> 
            
            
            <div class="yuying yu{$vo.id}">
            
            	<img src="com_statics/images/1.png" class="pic" />
             <span class="close">&times;</span>
            </div>
            
       </volist>   
            
            
            
            </div>
            <!-- .resumeNr结束 --> 
          
            <span class="clear"></span>
			  
	</div>
	<!-- resume结束 -->
       
 {$page}
	</div>
	<!-- neirong结束 -->


	<span class="clear"></span>
	<!-- 清除浮动 -->


</div>
<!-- container结束 -->
<script type="text/javascript">
function checkyuyue(){
    if($("input[name='mh_date']").attr('value')==""){
        $("input[name='mh_date']").addClass('red');
        return false;
    }else{
        $("input[name='mh_date']").removeClass('red');
    }
    if($("input[name='time']").attr('value')==""){
        $("input[name='time']").addClass('red');
        return false;
    }else{
        $("input[name='time']").removeClass('red');
    }
    if($("input[name='address']").attr('value')==""){
        $("input[name='address']").addClass('red');
        return false;
    }else{
        $("input[name='address']").removeClass('red');
    }
}
$(".btn_grzl").click(function(){
    var val = $(this).attr('value');
    $.post("__URL__/edit_check", { "id": val},
       function(data){
        if (data.status==1) {
          return true;  }
       }, "json");
})
$(".btn_lianxi").click(function(){
    var val = $(this).attr('value');
	var mb=$(this).parent()
	var wz=mb.position()
	var mtop=parseInt(mb.css("margin-top"))
	$(".yu"+val).css({"left":wz.left,"top":wz.top+mtop,"position":"absolute"}).fadeIn(300);
	voice = $(this).attr('data-index');
	mp3 = '__URL__/getvoiceurl/voice/'+voice;
	$.play_mp3(mp3);
    $.post("__URL__/edit_check", { "id": val},function(data){
        if (data.status==1) {
			return true;
		}
    }, "json");
});
$(".yuying .close").live("click",function(){
	$(this).parent().fadeOut(200);
	$.stop_mp3();
})

                                function del(val){
                                    $.post("__URL__/del_send_resume", { "id": val},
                                       function(data){
                                        if (data.status==1) {
                                          location.replace(location.href);  }
                                       }, "json");
                                            
                                }
</script>
<include file="Public:bottom" />